#!/bin/bash
nvcc -std=c++11  -c main.cu -o main.o
nvcc -std=c++11 -c System.cu -o System.o
# nvcc -std=c++11 -c CStemCell.cu -o CStemCell.o 
nvcc -std=c++11 -c PARStemCell.cu -o PARStemCell.o

nvcc  main.o System.o  PARStemCell.o  -o bct.exe

startTime=`date +"%Y-%m-%d %H:%M:%S"`
./bct.exe ../Run/md.in
endTime=`date +"%Y-%m-%d %H:%M:%S"`
st=`date -d  "$startTime" +%s`
et=`date -d  "$endTime" +%s`
sumTime=$(($et-$st))
echo "Total time is : $sumTime second."